package com.huawei.classroom.student.h06;

public class Role {
	int x,y,health;
	int force,range;
	public int getHealth() {
		return health;
	}
	public boolean isDestroyed() {
		return health<=0;
	}
	public double getDistance(Role object) {
		return Math.sqrt((x-object.x)*(x-object.x)*1.0+(y-object.y)*(y-object.y)*1.0);
	}
}
